package co.edu.unal.satacredito.infrastructure.dto;

import java.io.Serializable;
import java.util.Date;

import co.edu.unal.satacredito.database.entity.EventLog;
import co.edu.unal.satacredito.database.entity.Machine;

public class EventDTO implements Serializable{

	private static final long serialVersionUID = 1L;
	
    private String id;
    private Machine machine;
    private int work;
    private int stateWork;
    private Date startDate;
    private Date endDate;
    private String fileCheck;
	
	public EventDTO() {
		
	}
	
	public EventDTO(EventLog event) {
		this.id = event.getId().toString();
		this.machine = event.getMachine();
		this.work = event.getWork();
		this.stateWork = event.getStateWork();
		this.startDate = event.getStartDate();
		this.endDate = event.getEndDate();
		this.fileCheck = event.getFileCheck();
		
	}

	public String getId() {
		return id;
	}

	public Machine getMachine() {
		return machine;
	}

	public int getWork() {
		return work;
	}

	public int getStateWork() {
		return stateWork;
	}

	public Date getStartDate() {
		return startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public String getFileCheck() {
		return fileCheck;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setMachine(Machine machine) {
		this.machine = machine;
	}

	public void setWork(int work) {
		this.work = work;
	}

	public void setStateWork(int stateWork) {
		this.stateWork = stateWork;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void setFileCheck(String fileCheck) {
		this.fileCheck = fileCheck;
	}
}
